package com.ruoyi.project.gy.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.project.gy.mapper.TGupiaoMapper;
import com.ruoyi.project.gy.domain.TGupiao;
import com.ruoyi.project.gy.service.ITGupiaoService;

/**
 * 股票Service业务层处理
 * 
 * @author shenghuilee
 * @date 2020-04-09
 */
@Service
public class TGupiaoServiceImpl implements ITGupiaoService 
{
    @Autowired
    private TGupiaoMapper tGupiaoMapper;

    /**
     * 查询股票
     * 
     * @param gupiaoId 股票ID
     * @return 股票
     */
    @Override
    public TGupiao selectTGupiaoById(Long gupiaoId)
    {
        return tGupiaoMapper.selectTGupiaoById(gupiaoId);
    }

    /**
     * 查询股票列表
     * 
     * @param tGupiao 股票
     * @return 股票
     */
    @Override
    public List<TGupiao> selectTGupiaoList(TGupiao tGupiao)
    {
        return tGupiaoMapper.selectTGupiaoList(tGupiao);
    }

    /**
     * 新增股票
     * 
     * @param tGupiao 股票
     * @return 结果
     */
    @Override
    public int insertTGupiao(TGupiao tGupiao)
    {
        return tGupiaoMapper.insertTGupiao(tGupiao);
    }

    /**
     * 修改股票
     * 
     * @param tGupiao 股票
     * @return 结果
     */
    @Override
    public int updateTGupiao(TGupiao tGupiao)
    {
        return tGupiaoMapper.updateTGupiao(tGupiao);
    }

    /**
     * 批量删除股票
     * 
     * @param gupiaoIds 需要删除的股票ID
     * @return 结果
     */
    @Override
    public int deleteTGupiaoByIds(Long[] gupiaoIds)
    {
        return tGupiaoMapper.deleteTGupiaoByIds(gupiaoIds);
    }

    /**
     * 删除股票信息
     * 
     * @param gupiaoId 股票ID
     * @return 结果
     */
    @Override
    public int deleteTGupiaoById(Long gupiaoId)
    {
        return tGupiaoMapper.deleteTGupiaoById(gupiaoId);
    }
}
